﻿using QLBH.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLBH.DAO
{
    class DAO_TTTai
    {
        public DAO_TTTai()
        {
            Connection_Sql.StartConnect();
        }
        public int Insert(TTTai tai)
        {
            IDictionary<string, string> d = new Dictionary<string, string>();
            d.Add("MA_TTTai", tai.Ma_tttai);
            d.Add("Loaihinh_bh", tai.Loaihinhbh);
            d.Add("nganhnghekd", tai.Nganhnghekd);
            d.Add("Tongmuctrachnhiem", tai.Tongmuctrachnhiem);
            d.Add("Songuoithamgia", tai.Songuoithamgia);
            d.Add("Taicodinh", tai.Taicodinh);
            d.Add("Taitamthoi", tai.Taitamthoi);
            String spInsert = "insert_TTTai";
           return Connection_Sql.Insert(spInsert, d, true);

        }
    }
}
